﻿<Window x:Class="_1.ChangeFontSize.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <TextBlock x:Name="SimpleTextBlock" FontSize="{Binding ElementName=SliderFontSize, Path=Value}">Some text in text block</TextBlock>
        <Slider Margin="0,68,0,-68" x:Name="SliderFontSize" Minimum="0.1" Maximum="100"></Slider>
        <Label x:Name="LabelFontSize" Content="{Binding ElementName=SimpleTextBlock, Path=FontSize}" Margin="0,121,319,143"></Label>
        <Button Content="Set to large" Height="23" HorizontalAlignment="Left" Margin="0,182,0,0" Name="buttonSetToLarge" VerticalAlignment="Top" Width="75" Click="buttonSetToLarge_Click" />
    </Grid>
</Window>
